package com.fastCms.business.bim.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 设备主表
 * </p>
 *
 * @author liusq
 * @since 2021-03-25
 */
@ApiModel(value = "DeviceInfoVO", description = "设备主表")
@Data
public class DeviceInfoVO {


    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备编号")
    private String deviceCode;

    @ApiModelProperty(value = "设备中文名称")
    private String deviceUid;

    @ApiModelProperty(value = "工艺id")
    private String workduceId;

    @ApiModelProperty(value = "工艺名称")
    private String produce;

    @ApiModelProperty(value = "物料")
    private String maters;

    @ApiModelProperty(value = "设备类型ID")
    private Integer deviceTypeId;

    @ApiModelProperty(value = "设备类型ID")
    private String deviceTypeName;

    @ApiModelProperty(value = "设备X坐标")
    private String nodeX;

    @ApiModelProperty(value = "设备Y坐标")
    private String nodeY;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "设备动态字段及数据")
    private List<DeviceFiledsValueVO> filedsValueList;

}
